home *** CD-ROM | disk | FTP | other *** search
- --- ./lib/getarg.c Sun Sep 6 15:14:46 1998
- +++ ../libungif-4.1.0/./lib/getarg.c Thu Mar 18 15:31:00 1999
- @@ -103,6 +103,9 @@
-
- #ifdef USE_VARARGS
- #include <varargs.h>
- +#elif defined(STDC_HEADERS)
- + /** MRB - Where stdarg exists use it **/
- +#include <stdarg.h>
- #endif /* USE_VARARGS */
-
- #ifndef __MSDOS__
- @@ -183,10 +186,20 @@
-
- strcpy(CtrlStrCopy, CtrlStr);
-
- + /** MRB - Where stdarg exists use it **/
- +#ifdef STDC_HEADERS
- + {va_list ap;
- + va_start(ap, CtrlStr);
- + for (i = 1; i <= MAX_PARAM; i++) Parameters[i-1] = va_arg(ap, int*);
- + va_end(ap);
- + }
- +#else
- /* Using base address of parameters we access other parameters addr: */
- /* Note that me (for sure!) samples data beyond the current function */
- /* frame, but we accesson these set address only by demand. */
- for (i = 1; i <= MAX_PARAM; i++) Parameters[i-1] = (int *) *(i + &CtrlStr);
- +#endif /* STDC_HEADERS */
- +
- #endif /* USE_VARARG */
-
- --argc; argv++; /* Skip the program name (first in argv/c list). */
- --- ./lib/dgif_lib.c Wed Jan 20 00:19:38 1999
- +++ ../libungif-4.1.0/./lib/dgif_lib.c Thu Mar 18 15:30:02 1999
- @@ -360,12 +360,12 @@
- if (GifFile->Image.ColorMap != NULL) {
- sp->ImageDesc.ColorMap =
- (ColorMapObject *)malloc(sizeof (ColorMapObject));
- - memcpy(&sp->ImageDesc.ColorMap, &GifFile->Image.ColorMap,
- + memcpy(sp->ImageDesc.ColorMap, GifFile->Image.ColorMap,
- sizeof(ColorMapObject));
- sp->ImageDesc.ColorMap->Colors =
- (GifColorType *)malloc(sizeof (GifColorType));
- - memcpy(&sp->ImageDesc.ColorMap->Colors,
- - &GifFile->Image.ColorMap->Colors, sizeof(GifColorType));
- + memcpy(sp->ImageDesc.ColorMap->Colors,
- + GifFile->Image.ColorMap->Colors, sizeof(GifColorType));
- }
- sp->RasterBits = (char *)NULL;
- sp->ExtensionBlockCount = 0;
- @@ -940,7 +940,7 @@
- ImageSize = sp->ImageDesc.Width * sp->ImageDesc.Height;
-
- sp->RasterBits
- - = (GifPixelType*) malloc(ImageSize * sizeof(GifPixelType));
- + = (char *) malloc(ImageSize * sizeof(GifPixelType));
-
- if (DGifGetLine(GifFile, sp->RasterBits, ImageSize)
- == GIF_ERROR)
- --- ./util/gifcolor.c Sun Sep 6 15:15:29 1998
- +++ ../libungif-4.1.0/./util/gifcolor.c Thu Mar 18 14:26:29 1999
- @@ -73,6 +73,7 @@
- ColorMapObject *ColorMap;
- GifFileType *GifFile;
- GifColorType ScratchMap[256];
- + int red, green, blue;
-
- if ((Error = GAGetArgs(argc, argv, CtrlStr,
- &GifQuietPrint,
- @@ -105,9 +106,10 @@
- ColorMapSize = 0;
- while (fscanf(stdin,
- "%*3d %3d %3d %3d\n",
- - &ScratchMap[ColorMapSize].Red,
- - &ScratchMap[ColorMapSize].Green,
- - &ScratchMap[ColorMapSize].Blue) == 3) {
- + &red, &green, &blue) == 3) {
- + ScratchMap[ColorMapSize].Red = red;
- + ScratchMap[ColorMapSize].Green = green;
- + ScratchMap[ColorMapSize].Blue = blue;
- ColorMapSize++;
- }
-
- --- ./util/gif2ps.c Sun Sep 6 15:15:27 1998
- +++ ../libungif-4.1.0/./util/gif2ps.c Thu Mar 18 14:14:18 1999
- @@ -196,7 +196,7 @@
- PROGRAM_NAME, ++ImageNum, Col, Row, Width, Height);
- if (GifFile->Image.Left + GifFile->Image.Width > GifFile->SWidth ||
- GifFile->Image.Top + GifFile->Image.Height > GifFile->SHeight) {
- - fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n");
- + fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n",ImageNum);
- exit(-2);
- }
- if (GifFile->Image.Interlace) {
- --- ./util/gif2rgb.c Sun Sep 6 15:15:28 1998
- +++ ../libungif-4.1.0/./util/gif2rgb.c Thu Mar 18 14:14:38 1999
- @@ -171,7 +171,7 @@
- PROGRAM_NAME, ++ImageNum, Col, Row, Width, Height);
- if (GifFile->Image.Left + GifFile->Image.Width > GifFile->SWidth ||
- GifFile->Image.Top + GifFile->Image.Height > GifFile->SHeight) {
- - fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n");
- + fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n",ImageNum);
- exit(-2);
- }
- if (GifFile->Image.Interlace) {
- --- ./util/gifrsize.c Sun Sep 6 15:15:31 1998
- +++ ../libungif-4.1.0/./util/gifrsize.c Thu Mar 18 14:17:56 1999
- @@ -123,13 +123,13 @@
- if (!YScaleFlag && ScaleFlag) YScale = Scale;
-
- if (XScale > MAX_SCALE) {
- - sprintf(s, "XScale too big, maximum scale selected instead (%d).",
- + sprintf(s, "XScale too big, maximum scale selected instead (%f).",
- MAX_SCALE);
- GIF_MESSAGE(s);
- XScale = MAX_SCALE;
- }
- if (YScale > MAX_SCALE) {
- - sprintf(s, "YScale too big, maximum scale selected instead (%d).",
- + sprintf(s, "YScale too big, maximum scale selected instead (%f).",
- MAX_SCALE);
- GIF_MESSAGE(s);
- YScale = MAX_SCALE;
- --- ./util/icon2gif.c Sun Sep 6 15:15:32 1998
- +++ ../libungif-4.1.0/./util/icon2gif.c Thu Mar 18 14:36:36 1999
- @@ -149,6 +149,7 @@
- *ColorMap = GlobalColorMap;
- char GlobalColorKeys[PRINTABLES], LocalColorKeys[PRINTABLES],
- *KeyTable = GlobalColorKeys;
- + int red, green, blue;
-
- char buf[BUFSIZ * 2], InclusionFile[64];
- GifFileType *GifFileOut;
- @@ -248,11 +249,11 @@
- }
-
- else if (sscanf(buf, " rgb %d %d %d is %c",
- - &ColorMap[ColorMapSize].Red,
- - &ColorMap[ColorMapSize].Green,
- - &ColorMap[ColorMapSize].Blue,
- - &KeyTable[ColorMapSize]) == 4)
- + &red, &green, &blue, &KeyTable[ColorMapSize]) == 4)
- {
- + ColorMap[ColorMapSize].Red = red;
- + ColorMap[ColorMapSize].Green = green;
- + ColorMap[ColorMapSize].Blue = blue;
- ColorMapSize++;
- }
-
- @@ -425,7 +426,7 @@
- if (!GifQuietPrint)
- putc('\n', stderr);
-
- - NewImage->RasterBits = Raster;
- + NewImage->RasterBits = (char *) Raster;
- }
- else if (sscanf(buf, "comment"))
- {
- --- ./util/gifrotat.c Sun Sep 6 15:15:31 1998
- +++ ../libungif-4.1.0/./util/gifrotat.c Thu Mar 18 14:27:45 1999
- @@ -177,7 +177,7 @@
- PROGRAM_NAME, ++ImageNum, Col, Row, Width, Height);
- if (GifFile->Image.Left + GifFile->Image.Width > GifFile->SWidth ||
- GifFile->Image.Top + GifFile->Image.Height > GifFile->SHeight) {
- - fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n");
- + fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n",ImageNum);
- exit(-2);
- }
- if (GifFile->Image.Interlace) {
- --- ./util/gifclrmp.c Sun Sep 6 15:15:29 1998
- +++ ../libungif-4.1.0/./util/gifclrmp.c Thu Mar 18 14:27:26 1999
- @@ -316,9 +316,11 @@
-
- /* Read the translation table in TranslateFile: */
- for (i = 0; i < ColorMap->ColorCount; i++) {
- + int tmp;
- if (feof(TranslateFile))
- GIF_EXIT("Color file to load color map from, too small.");
- - fscanf(TranslateFile, "%3d %3d\n", &Dummy, &Translation[i]);
- + fscanf(TranslateFile, "%3d %3d\n", &Dummy, &tmp);
- + Translation[i] = tmp;
- if (Translation[i] > Max)
- Max = Translation[i];
- }
- --- ./util/gif2x11.c Sun Sep 6 15:15:28 1998
- +++ ../libungif-4.1.0/./util/gif2x11.c Thu Mar 18 14:28:06 1999
- @@ -210,7 +210,7 @@
- PROGRAM_NAME, ++ImageNum, Col, Row, Width, Height);
- if (GifFile->Image.Left + GifFile->Image.Width > GifFile->SWidth ||
- GifFile->Image.Top + GifFile->Image.Height > GifFile->SHeight) {
- - fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n");
- + fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n",ImageNum);
- exit(-2);
- }
- if (GifFile->Image.Interlace) {
- --- ./util/gif2epsn.c Sun Sep 6 15:15:27 1998
- +++ ../libungif-4.1.0/./util/gif2epsn.c Thu Mar 18 14:14:23 1999
- @@ -225,7 +225,7 @@
- PROGRAM_NAME, ++ImageNum, Col, Row, Width, Height);
- if (GifFile->Image.Left + GifFile->Image.Width > GifFile->SWidth ||
- GifFile->Image.Top + GifFile->Image.Height > GifFile->SHeight) {
- - fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n");
- + fprintf(stderr, "Image %d is not confined to screen dimension, aborted.\n",ImageNum);
- exit(-2);
- }
- if (GifFile->Image.Interlace) {
- --- ./Makefile.in Tue Feb 9 16:25:09 1999
- +++ ../libungif-4.1.0/./Makefile.in Thu Mar 18 15:06:27 1999
- @@ -230,7 +230,7 @@
- for tst in $(TESTS); do \
- if test -f $$tst; then dir=.; \
- else dir="$(srcdir)"; fi; \
- - if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
- + if $(TESTS_ENVIRONMENT) $$dir/$$tst $(TESTS_ARGS); then \
- all=`expr $$all + 1`; \
- echo "PASS: $$tst"; \
- elif test $$? -ne 77; then \
- --- ./ChangeLog Wed Jan 20 00:46:28 1999
- +++ ../libungif-4.1.0/./ChangeLog Thu Mar 18 15:30:49 1999
- @@ -1,3 +1,15 @@
- +1999 05 Mar Michael R Brown <michael@arrakeen.demon.co.uk>
- + * lib/getarg.c: Lines 107 and 189
- + Added ifdef's to use stdarg when available. On dec-alpha the
- + default code was causing programs to crash, probably because
- + it assumes a stack that grows-up.
- +
- +1999 24 Feb Michael R Brown <michael@arrakeen.demon.co.uk>
- + * lib/dgif_lib.c: Lines 363 and 367
- + Bug reported by Steve Sanders, where &'s where causing the
- + memcpy to overwrite the pointers. Fixed by removing the &'s
- + so that memcpy overwrote the memory pointed to.
- +
- 1999 20 Jan Toshio Kuratomi <badger@prtr-13.ucsc.edu>
- * Release 4.1.0
-
- --- ./ltconfig Thu Sep 10 03:42:47 1998
- +++ ../libungif-4.1.0/./ltconfig Sat Mar 20 17:03:44 1999
- @@ -851,7 +851,7 @@
- if test "$with_gcc" = yes; then
- archive_cmds='$CC -shared -o $lib ${wl}-soname ${wl}$soname ${wl}-set_version ${wl}$verstring$libobjs'
- else
- - archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs'
- + archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- ;;
-